<extend name="Public:innerbase" />



<block name="js">



<script src="{:RES}/js/date/WdatePicker.js"></script>



</block>



<block name="content">



<div class="container-fluid">



	<ul class="nav nav-tabs wm-tabs">



		<li class="active"><a href="javascript:void(0)">会员管理</a></li>



		 <li><a href="{:U('Channel/adduser')}">添加会员</a></li>



	</ul>



	<div class="page-header wm-page-header">



	 	<form method="get" action="__SELF__" class="form-inline">



		



		<label>姓名</label>



		<input name="wechat_name" type="text" value="{$_GET['wechat_name']}" class="form-control" />



		<label>手机号</label>



		<input name="phone" type="text" value="{$_GET['phone']}" class="form-control" />



		<button class="btn btn-primary" type="submit">



			<span class="glyphicon glyphicon-search"></span>



			查询



		</button>



		</form> 



	</div>

<script>
			function sub(id,star=0){
				$("#star").get(0).selectedIndex = star;
				$("input[name='orderid']").val(id);
			}
		</script>


	<TABLE class="table wm-table-bordered table-striped table-hover">



		<THEAD>



		<TR>



			<TH>ID</TH>



			



			<TH>姓名</TH>
			<TH>电话</TH>
			<!-- 
			<TH>一级人数</TH>
			<TH>二级人数</TH>
			<TH>三级人数</TH> -->

			<TH>注册时间</TH>



			<TH>余额</TH>
<TH>总充值</TH>


			<TH>虚拟金额(元)</TH> 



			<TH>冻结金额</TH>



			<TH>状态</TH>



			   <!--  <TH>操作</TH>     -->



			



		</TR>



		</THEAD>



		<TBODY>



		<volist id="list" name="list">



		<TR>



			<TD>{$list.id}</TD>



			<TD>{$list.wechat_name}</TD>



			<TD>{$list.phone}</TD>
			
		<!-- 	<TD><if condition="$list['num'][0]['count'] gt 0"><a href="{:U('Member/mychild',['lever'=>0,'pid'=>$list['id']])}"> <span style="color:red;"> {$list['num'][0]['count']|default=0}</span></a><else /> 0</if></TD>
			<TD><if condition="$list['num'][1]['count'] gt 0"><a href="{:U('Member/mychild',['lever'=>1,'pid'=>$list['id']])}"> <span style="color:#0012ff;"> {$list['num'][1]['count']|default=0}</span></a><else /> 0</if></TD>
			<TD><if condition="$list['num'][2]['count'] gt 0"><a href="{:U('Member/mychild',['lever'=>2,'pid'=>$list['id']])}"> <span style="color:green;"> {$list['num'][2]['count']|default=0}</span></a><else /> 0</if></TD> -->



			<TD>	{$list.create_time|date='Y-m-d H:i',###}</TD>



			<TD>{$list.money}</TD>
			<TD>{$list.paysum|default=0}</TD>


			<TD>{$list.coin}</TD>



			<TD>{$list.dongjie}</td>



			<TD>
				<if condition="$list.star eq 1">
				<a href="###" class="btn btn-xs btn-primary">团队领导</a>

				</if>

				<if condition="$list.status eq 1"><span style="color:red">冻结</span><else />正常</if></td>

		</form>



		</TR>



		</volist>



	  </TBODY>



	</TABLE>



	<div>{$page}</div>



</div>
<div class="modal fade"  id="modal">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<h4 class="modal-title">更改用户身份</h4>
					</div>
					<div class="modal-body">
						<form id="form" class="form" method="post" action="{:U('change')}">
							<input type="hidden" name="orderid"  />
							
							<div class="form-group">
								<label for="score">会员等级</label>
								<select  name="star" id='star' class="form-control">
									<option  value="0" >免费会员</option>
									<option  value="1">团队领导人</option>
								</select>

							</div>
							<button type="submit" class="btn btn-primary">确定</button>
						</form>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal-dialog -->
		</div><!-- /.modal -->



</block>